package demo.issuetracker.model;

import javax.persistence.Embeddable;

/**
 * Represents an uploaded file
 */
@Embeddable
public class UploadedFile implements Cloneable {
    private byte[] data;
    private String contentType;
    private String fileName;

    public String getContentType() {
        return contentType;
    }

    public byte[] getData() {
        return data;
    }

    public String getFileName() {
        return fileName;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public UploadedFile clone() {
        try {
            return (UploadedFile) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException("Developer exception", e);
        }
    }
}// clickframes::version=2799659938::clickframes